<?php

namespace App\Http\Controllers\Guest;

use App\Http\Controllers\Controller;
use App\Model\Associado;
use App\Model\Catalogo;
use App\Model\Download;
use App\Model\Projeto;
use App\Model\Tutorial;
use Illuminate\Http\Request;

class HomeController extends Controller
{
    public function Index()
    {
        $x = 1;
        if ($x == 1) {
            $catalogos = Catalogo::all()->count() or null;
            $associados = Associado::all()->count() or null;
            $tutoriais = Tutorial::all()->count() or null;
            $projetos = Projeto::all()->count() or null;
            $downloads = Download::all()->count() or null;
        }
        return view('index', compact('catalogos', 'associados', 'tutoriais', 'projetos', 'downloads'));
    }
}
